package com.gonsin.license.po;

import com.gonsin.base.exceptions.MyException;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang.StringUtils;

@Getter
@Setter
@ApiModel("修改授权到期时间请求体")
public class ModifyAuthExpirationTimePo {

    @ApiModelProperty("到期时间(2025/05/30)")
    private String date;

    public void validate(){
        if(StringUtils.isBlank(date)){
            throw new MyException(400,"到期时间不能为空");
        }
    }
}
